package UI;

import java.util.Objects;

public class Admin {
    String account;
    String  pasword;

    public Admin(){

    }
    public Admin(String ac , String  pa ){
        this.account =ac;
        this.pasword = pa ;
    }
    public static  void changUserInfo(){

    }

    public String getAccount() {
        return account;
    }

    public String getPasword() {
        return pasword;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setPasword(String pasword) {
        this.pasword = pasword;
    }

    @Override
    public String toString() {
        return super.toString();
    }


    public boolean equal(Admin obj) {
        if(Objects.equals(obj.getPasword(), this.getPasword()) && Objects.equals(obj.getAccount(), this.getAccount())){
            return  true;
        }
        return false;

    }
}
